SUPPORT / SAMPLES & SAS NOTES
 

Support

Usage Note 16727: The STARTPAGE=NOW option does not show expected TITLE/FOOTNOTE in RTF output

DetailsAboutRate It

If the STARTPAGE= option is set to NO/OFF or NEVER in the ODS RTF destination, and ODS RTF STARTPAGE=NOW is used to insert a single page break, the first page of output following the ODS RTF STARTPAGE=NOW statement will have whatever title or footnote was in effect before the page break was issued.

The workaround is to move the title (or footnote) BEFORE the ODS RTF STARTPAGE=NOW statement, or to use ODS RTF STARTPAGE=YES to force the page break.

   /* PROBLEM: this code will have the title */
   /* "CLASS and RETAIL" on the second page  */

   ods rtf file="file.rtf" startpage=no;

   proc print data=sashelp.class(obs=5);
     title "class and retail";
   run;

   proc print data=sashelp.retail(obs=5);
   run;

   ods rtf startpage=now;

   proc print data=sashelp.shoes;
     title "shoes";
   run;

   ods rtf close;


   /* WORKAROUND: this code will have the title */
   /* "SHOES" on the second page                */

   ods rtf file="file.rtf" startpage=no;

   proc print data=sashelp.class(obs=5);
     title "class and retail";
   run;

   proc print data=sashelp.retail(obs=5);
   run;

   title "shoes";
   ods rtf startpage=now;

   proc print data=sashelp.shoes;
   run;

   ods rtf close;


Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SAS64-bit Enabled AIX9 TS M09.3 TS1M0
OpenVMS Alpha9 TS M09.3 TS1M0
64-bit Enabled HP-UX9 TS M09.3 TS1M0
HP-UX IPF9 TS M09.3 TS1M0
HP-UX9 TS M09.3 TS1M0
Linux9 TS M09.3 TS1M0
z/OS9 TS M09.3 TS1M0
64-bit Enabled Solaris9 TS M09.3 TS1M0
Solaris9 TS M09.3 TS1M0
Microsoft Windows 2000 Advanced Server9 TS M0
Microsoft Windows 2000 Datacenter Server9 TS M0
Microsoft Windows 2000 Professional9 TS M0
Microsoft Windows XP Professional9 TS M09.3 TS1M0
Microsoft Windows NT Workstation9 TS M0
Microsoft® Windows® for 64-Bit Itanium-based Systems9 TS M09.3 TS1M0
Microsoft Windows Server 2003 Standard Edition9 TS M09.3 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9 TS M09.3 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9 TS M09.3 TS1M0
Microsoft Windows 2000 Server9 TS M0
Tru64 UNIX9 TS M09.3 TS1M0
AIX9 TS M09.3 TS1M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.